using DG.Tweening;
using DG.Tweening.Core;
using UnityEngine;

namespace WorkFlow.TweenGo
{
    public class RectSizeTween : TweenGoBase<RectTransform,Vector2>
    {
        protected override Tweener CreateTween(DOGetter<Vector2> startValueGetter, DOSetter<Vector2> setter, Vector2 endValue, float duration)
        {
            return DOTween.To(startValueGetter, setter, endValue, duration);
        }

        protected override void SetValue(Vector2 value)
        {
            Target.sizeDelta = value;
        }
    }
}

